# 打印这样的形状
# *
# **
# ***
# ****
# *****
# ****
# ***
# **
# *
# 解题思路，10次循环，前5次打印 i * "*" , 后5次打印 (10-i) * "*"

for i in range(10):
    if i < 5:
        print("*" * (i+1))
    else:
        print("*" * (10-i))